package com.laot.search.controller;

import com.laot.search.service.feignServece.NoticeBoardProviderClient;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.laot.seacher_master.model.common.BaseResponse;
import org.laot.searchManage.dto.DatasourceApplicationCommitDto;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * 数据源申请单接口
 * @author laoT
 * @date 2024/1/24
 */

@Slf4j
@Api(tags = "数据源申请单接口")
@RestController
@RequestMapping("/feign/datasource/application")
public class DatasourceApplicationController {

    @Resource
    private NoticeBoardProviderClient datasourceApplicationProviderClient;

    @PostMapping("/commit")
    @ApiOperation("提交申请单")
    public BaseResponse<String> commit(@RequestBody DatasourceApplicationCommitDto dto){
        return datasourceApplicationProviderClient.commit(dto);
    }


}
